using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Killed : MonoBehaviour
{
    private void OnCollisionEnter2D(Collision2D collision)
    {
        if (!collision.gameObject.CompareTag("Killer")) return;
        CursorMove.isDead = true;
        GetComponent<Rigidbody2D>().gravityScale = 1;
    }
}
